package com.neuedu.his.mapper;

import com.neuedu.his.po.Prescription;
import com.neuedu.his.po.Prescriptiondetailed;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author 86187
* @description 针对表【prescriptiondetailed】的数据库操作Mapper
* @createDate 2025-07-02 10:17:16
* @Entity com.neuedu.his.po.Prescriptiondetailed
*/
public interface PrescriptiondetailedMapper extends BaseMapper<Prescriptiondetailed> {
    @Select("SELECT * FROM prescription WHERE RegistID = #{registId}")
    List<Prescription> selectByRegistId(@Param("registId") Integer registId);

    @Select("SELECT * FROM prescription WHERE MedicalID = #{medicalId}")
    List<Prescription> selectByMedicalId(@Param("medicalId") Integer medicalId);
}




